<template>
  <div class="box" id="search_conta">
    <el-input v-model="inputObject.isuserInput" :id="inputObject.inputId" placeholder="请输入你要查找的关键字"></el-input>
    <button id="searchBtn" @click="send">searchBtn</button>
    <div ref="container" class="container" style="width: 400px;" >
  </div>
  </div>
</template>

<script>
import Bus from "../GisBus/bus";
export default {
  data() {
    return {
      inputObject:{
        isuserInput:"",
        inputId:"searchInput",
      },
    };
  },
  methods: {
    send() {
      Bus.$emit("shareUserIput", this.inputObject);
    },
  },
  mounted() {
    this.send()  
  },
};
</script>

<style scoped lang="less">
.box {
  width: 300px;
  height: 30px;
  display: flex;
  align-items: center;
}
#searchBtn {
  width: 90px;
  height: 30px;
  margin-left: 10px;
}
</style>